package com.qujia.station.utils;

import com.qujia.common.exception.CustomException;
import lombok.extern.slf4j.Slf4j;

/**
 * @Auther: zxy
 * @Date: 2023/9/21 12:12
 * @Description:
 */
@Slf4j
public class PermissionsUtil {



    public static String getDistrict(Integer district){
        String districtString = "";
        switch (district){
            case 1:
                districtString = "华北地区";
                break;
            case 2:
                districtString = "华南地区";
                break;
            case 3:
                districtString="西南地区";
                break;
            case 4:
                districtString="西北地区";
                break;
            case 5:
                districtString="东北地区";
                break;
            default:
                throw new CustomException("传个正确的地区");
        }
        return districtString;
    }
}
